From 81db45f1a49ba9471674cf31c1751a4eb82e9df4 Mon Sep 17 00:00:00 2001 From: "kaf24@viper.(none)" Date: Sat, 26 Feb 2005 18:20:46 +0000 Subject: [PATCH] bitkeeper revision 1.1236.1.32 (4220bdfe_g8imkJtGDR6Xv_2hEHwOQ) DOM0 has no mem reservation limit. Signed-off-by: Keir Fraser --- xen/arch/x86/domain_build.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/domain_build.c b/xen/arch/x86/domain_build.c index 802fb6d8c0..28bae69545 100644 --- a/xen/arch/x86/domain_build.c +++ b/xen/arch/x86/domain_build.c @@ -113,11 +113,11 @@ int construct_dom0(struct domain *d, printk("*** LOADING DOMAIN 0 ***\n"); /* By default DOM0 is allocated all available memory. */ + d->max_pages = ~0U; if ( (nr_pages = opt_dom0_mem >> (PAGE_SHIFT - 10)) == 0 ) nr_pages = avail_domheap_pages() + ((initrd_len + PAGE_SIZE - 1) >> PAGE_SHIFT) + ((image_len + PAGE_SIZE - 1) >> PAGE_SHIFT); - d->max_pages = nr_pages; if ( (page = alloc_largest(d, nr_pages)) == NULL ) panic("Not enough RAM for DOM0 reservation.\n"); alloc_start = page_to_phys(page); -- 2.30.2